*{
    margin: 0;
    padding: 0;
}
.demo{
    width: 500px;
    height: 300px;
    background-color: red;
}
@media screen and (max-width:768px) {
    .demo{
        background-color:blue; 
    }
   
}